/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="CONVENIOSUNIDADES")
public class ConveniosUnidadesProteu implements Serializable{

    @Id
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;//chave composta??
    @Id
    @Column(name="UNI_IN_CODIGO")
    private String uniInCodigo;
    @Id
    @Column(name="ESC_ST_CODIGO")
    private String escStCodigo;

    @Column(name="COU_CH_BLOQUEADO")
    private String couChBloqueado;
    @Column(name="COU_DT_ALTERACAO")
    private String couDtAlteracao;
    @Column(name="USU_ST_CODIGO")
    private String usuStCodigo;

    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public String getCouChBloqueado() {
        return couChBloqueado;
    }

    public void setCouChBloqueado(String couChBloqueado) {
        this.couChBloqueado = couChBloqueado;
    }

    public String getCouDtAlteracao() {
        return couDtAlteracao;
    }

    public void setCouDtAlteracao(String couDtAlteracao) {
        this.couDtAlteracao = couDtAlteracao;
    }

    public String getEscStCodigo() {
        return escStCodigo;
    }

    public void setEscStCodigo(String escStCodigo) {
        this.escStCodigo = escStCodigo;
    }

    public String getUniInCodigo() {
        return uniInCodigo;
    }

    public void setUniInCodigo(String uniInCodigo) {
        this.uniInCodigo = uniInCodigo;
    }

    public String getUsuStCodigo() {
        return usuStCodigo;
    }

    public void setUsuStCodigo(String usuStCodigo) {
        this.usuStCodigo = usuStCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ConveniosUnidadesProteu other = (ConveniosUnidadesProteu) obj;
        if ((this.conStCodigo == null) ? (other.conStCodigo != null) : !this.conStCodigo.equals(other.conStCodigo)) {
            return false;
        }
        if ((this.uniInCodigo == null) ? (other.uniInCodigo != null) : !this.uniInCodigo.equals(other.uniInCodigo)) {
            return false;
        }
        if ((this.escStCodigo == null) ? (other.escStCodigo != null) : !this.escStCodigo.equals(other.escStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 79 * hash + (this.conStCodigo != null ? this.conStCodigo.hashCode() : 0);
        hash = 79 * hash + (this.uniInCodigo != null ? this.uniInCodigo.hashCode() : 0);
        hash = 79 * hash + (this.escStCodigo != null ? this.escStCodigo.hashCode() : 0);
        return hash;
    }

    

}
